package Review.Thread;
class MyRunnable implements  Runnable{
    @Override
    public void run() {
        while(true){
            System.out.println("小野猫想要我抱着亲");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        Runnable runnable = new MyRunnable();
        Thread t = new Thread(runnable);
        t.start();
        while (true){
            System.out.println("我抱着小野猫深情对视然后亲吻我的小笨蛋");
            Thread.sleep(1000);
        }
    }
}
